package cn.qiyu5522.tk_ems.controller.admin;

import cn.qiyu5522.tk_ems.result.R;
import cn.qiyu5522.tk_ems.service.EmployStatisticService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ProjectName: tk_ems
 * @Package: cn.qiyu5522.tk_ems.controller.admin
 * @ClassName: EmployStatisticController
 * @Author: [Toneky]
 * @Date: 2023/3/6 16:32
 * @Version: V1.0
 **/
@Api(tags = "就业统计图")
@RestController
@RequestMapping("admin/employStatistic")
public class EmployStatisticController {
    @Resource
    private EmployStatisticService employStatisticService;

    @ApiOperation("按专业统计")
    @GetMapping("majorStatistic")
    public R majorStatistic() {
        return employStatisticService.majorStatistic();
    }
    @ApiOperation("按班级统计")
    @GetMapping("classroomStatistic")
    public R classroomStatistic() {
        return employStatisticService.classroomStatistic();
    }
    @ApiOperation("按岗位统计")
    @GetMapping("jobStatistic")
    public R jobStatistic() {
        return employStatisticService.jobStatistic();
    }
    @ApiOperation("按企业统计")
    @GetMapping("companyStatistic")
    public R companyStatistic() {
        return employStatisticService.companyStatistic();
    }

}
